/*
 * MCreator (https://mcreator.net/)
 * Copyright (C) 2020 Pylo and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package net.mcreator.element.parts.gui;

import net.mcreator.element.parts.MItemBlock;
import net.mcreator.element.parts.procedure.LogicProcedure;
import net.mcreator.element.parts.procedure.Procedure;

import java.awt.*;

public class InputSlot extends Slot {

	public MItemBlock inputLimit;
	public LogicProcedure disablePlacement;

	// for deserialization use only, to specify default values
	@SuppressWarnings("unused") private InputSlot() {
		this.dropItemsWhenNotBound = true;
	}

	public InputSlot(int id, int x, int y, Color color, LogicProcedure disablePickup, LogicProcedure disablePlacement,
			boolean dropItemsWhenNotBound, Procedure onSlotChanged, Procedure onTakenFromSlot,
			Procedure onStackTransfer, MItemBlock inputLimit) {
		super(id, x, y, color, disablePickup, dropItemsWhenNotBound, onSlotChanged, onTakenFromSlot, onStackTransfer);
		this.inputLimit = inputLimit;
		this.disablePlacement = disablePlacement;
	}

	@Override public String getName() {
		return "input_slot_" + id;
	}

}
